package com.bbz.core.transmit;

public class Demo {

    public static void main(String args[]) {
        Person person = new Person();
        person.setName("张张");
        PersonCrossTest(person);
        System.out.println("main方法执行后的name"+person.getName());
    }

    public static void PersonCrossTest(Person person) {
        System.out.println("传入的person的name：" + person.getName());
        person = new Person();//加多此行代码
        person.setName("我是张小龙");
        System.out.println("方法内重新赋值后的name：" + person.getName());
    }
}
